package com.ytsky.quotesystem.entity;

public class Article {

    private int id;
    private String title; //文章标题
    private String content; //文章内容
    private String publishUsername; //发表用户名
    private String publishTime; //发表时间
    private int commentAmount; //评论数

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublishUsername() {
        return publishUsername;
    }

    public void setPublishUsername(String publishUsername) {
        this.publishUsername = publishUsername;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public int getCommentAmount() {
        return commentAmount;
    }

    public void setCommentAmount(int commentAmount) {
        this.commentAmount = commentAmount;
    }

    @Override
    public String toString() {
        return "article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publishUsername='" + publishUsername + '\'' +
                ", publishTime='" + publishTime + '\'' +
                ", commentAmount=" + commentAmount +
                '}';
    }
}
